<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Cases\Cases */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="cases-form box box-primary">
    <?=$this->render('@app/views/layouts/_tab.php')?>
    <?php $form = ActiveForm::begin(); ?>
    <div class="box-body table-responsive">

        <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
        <?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?>
        <?= $form->field($model, 'content')->textarea(['rows' => 6]) ?>
        <?= $form->field($model, 'picture')->widget('common\widgets\webUpload\FileInput', [
            'clientOptions' => [
                'pick' => [
                    'multiple' => true,
                ],
            ],
        ])->hint('案例图'); ?>
        <?= $form->field($model, 'status')->dropDownList(\common\models\Cases\Cases::getStatusOptions(), ['default' => 1])->label('状态')?>

    </div>
    <div class="box-footer">
        <?= Html::submitButton('Save', ['class' => 'btn btn-success btn-flat']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>
